
import BackendjsFunctions from '@/core/BackendjsFunctions.js'
import { backendjsFunctions } from '@/core/functions.js'

export default {
  /**
   * 获取fixed组件的数据
   * @returns 返回 fixed 组件的渲染数据
   */
  getComponentMenuFootfixed () {
    BackendjsFunctions._verification('getComponentMenuFootfixed')
    try {
      return backendjsFunctions().getComponentMenuFootfixed()
    } catch (error) {
      console.error(error)
    }
    return null
  },
  /**
   * 保存fixed组件的数据
   * @param {*} bjComponent 传入的参数为获取到的 fixed 组件的渲染数据
   * @returns 返回保存后的 fixed 组件的渲染数据
   */
  saveComponentMenuFootfixed (bjComponent) {
    BackendjsFunctions._verification('saveComponentMenuFootfixed')
    try {
      return backendjsFunctions().saveComponentMenuFootfixed(bjComponent)
    } catch (error) {
      console.error(error)
    }
    return null
  }
}
